package com.ysy.logistics.entities.sale;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ysy.common.entities.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @ClassDescription:
 * @Author:姚斯羽
 * @Create:2025/4/9 22:04
 **/
@Data
@TableName("cus_order")
@Schema(name = "cus_order", description = "客户订单")
@Accessors(chain = true)
public class CusOrder extends BaseEntity {

    @Schema(description = "订单Id")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @Schema(description = "订单编号")
    @TableField(value = "order_num")
    private String orderNum;

    @Schema(description = "客户Id")
    @TableField(value = "customer_id")
    private String customerId;

    @Schema(description = "客户名称")
    @TableField(value = "customer_name")
    private String customerName;

    @Schema(description = "订单总价")
    @TableField(value = "total_price")
    private Integer totalPrice;

    @Schema(description = "订单状态")
    @TableField(value = "order_status")
    private Integer orderStatus;

    @Schema(description = "出库状态")
    @TableField(value = "storage_status")
    private Integer storageStatus;

    @Schema(description = "出库时间")
    @TableField(value = "storage_time")
    private Date storageTime;

    @Schema(description = "订单备注")
    @TableField(value = "remark")
    private String remark;

    @Schema(description = "快递单号")
    @TableField(value = "express_id")
    private String expressId;

    @Schema(description = "下单人")
    @TableField(value = "create_user")
    private String createUser;




}
